CacheStorageType
import { CacheStorageType } from "@hyper-fetch/core"
Description
Defined in cache/cache.types.ts:61
Preview
type CacheStorageType = {
clear: () => void;
delete: (key: string) => void;
get: <Response,Error,AdapterType>(key: string) => CacheValueType<Response, Error, AdapterType> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: <Response,Error,AdapterType>(key: string, data: CacheValueType<Response, Error, AdapterType>) => void;
}
Structure
{
clear: () => void;
delete: (key: string) => void;
get: (key: string) => CacheValueType<Response, Error, AdapterType> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: (key: string, data: CacheValueType<Response, Error, AdapterType>) => void;
}